Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remaining well-known eACL filter setters #333

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

alexvanin
Copy link
Contributor

Closes #332

According to specification, well-known object related filter keys for
extended ACL do not include `$Object:split.parent`.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
}

// AddObjectTypeFilter adds filter by object type.
func (r *Record) AddObjectTypeFilter(m Match, t *object.Type) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why pointer arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason I thought raw object returns *Type but I was wrong. Fixed.

cthulhu-rider
cthulhu-rider previously approved these changes Aug 25, 2021
carpawell
carpawell previously approved these changes Aug 26, 2021
@codecov
Copy link

codecov bot commented Aug 26, 2021

Codecov Report

Merging #333 (e2c7a91) into master (8c9e150) will increase coverage by 0.15%.
The diff coverage is 100.00%.

❗ Current head e2c7a91 differs from pull request most recent head b448c26. Consider uploading reports for the commit b448c26 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #333      +/-   ##
==========================================
+ Coverage   62.89%   63.04%   +0.15%     
==========================================
  Files         119      119              
  Lines       13826    13840      +14     
==========================================
+ Hits         8696     8726      +30     
+ Misses       4138     4122      -16     
  Partials      992      992              
Impacted Files Coverage Δ
pkg/acl/eacl/filter.go 92.00% <100.00%> (+19.39%) ⬆️
pkg/acl/eacl/record.go 93.38% <100.00%> (+2.56%) ⬆️
pkg/object/tombstone.go 91.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c9e150...b448c26. Read the comment docs.

@alexvanin alexvanin merged commit 1ddc98d into nspcc-dev:master Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ObjectID filter to eacl records
3 participants